package fr.ants.model.ai.pathfinding;

import fr.ants.model.Node;

public class AStarData {

	private double g;
	private double h;
	private double f;
	private boolean opened;
	private Node parent;

	public AStarData() { }

	public AStarData(int g, int f, boolean opened) {
		super();
		this.g = g;
		this.f = f;
		this.opened = opened;
	}
	public double getG() {
		return g;
	}
	public void setG(double g) {
		this.g = g;
	}
	public double getF() {
		return f;
	}
	public void setF(double f) {
		this.f = f;
	}
	public double getH() {
		return h;
	}
	public void setH(double h) {
		this.h = h;
	}
	public boolean isOpened() {
		return opened;
	}
	public void setOpened(boolean opened) {
		this.opened = opened;
	}
	public Node getParent() {
		return parent;
	}
	public void setParent(Node parent) {
		this.parent = parent;
	}

	public void reset() {
		parent = null;
		g = 0;
		h = 0;
		f = 0;
		opened = false;
	}
}
